#!/bin/bash

cd ~;
ssh-keygen -t rsa -P '' -f ~/.ssh/id_rsa >> a.txt;
cd .ssh/;
cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys;
chmod 600 authorized_keys;